<?php
	/**
	 * [Time]
	 * @Author   :seven
	 * @DateTime :2016-08-16T18:34:54+0800
	 * @Detail   :This Class Is The Example
	 */
	namespace Util;
	
	class ClassObj{
		private $Controller;
		public function __construct($C = true){
			$this->Controller = $C;
		} 

		public function set($name,$value){
			if(!strpos($name, '.')){
				if(isset($this->Assemble[$name]) || !$this->Controller){
					$this->Assemble[$name] = urlencode($value);
				}
			}else{
				$Keys = explode('.', $name);
				foreach ($Keys as $k => $v) {
					if(isset($this->Assemble['data'][$v]) || !$this->Controller){
						$this->Assemble['data'][$v]['value'] = urlencode($value[$k][0]);
						$this->Assemble['data'][$v]['color'] = $value[$k][1];
					}
				}
			}
		}

		public function get(){
			return urldecode(json_encode($this->Assemble));
		}
	}
	?>